// ignore_for_file: must_be_immutable

/*
 * Author: Alvin
 * Modified By: Alvin
 * Created Date: 2023-07-21 17:05:51
 * Last Modified: 2023-10-08 17:49:10
 * Description:
 */
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yt_devops/resources/resources.dart';
import 'package:yt_devops/resources/str_res_keys.dart';

class ListEmptyWidget extends StatelessWidget {
  double topPosition = 0;

  ListEmptyWidget({
    super.key,
    required this.topPosition,
  });

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.max,
      children: <Widget>[
        SizedBox(
          height: topPosition,
        ),
        const Image(
          image: AssetImage(ImageAssets.noData),
          width: 160,
          fit: BoxFit.fitHeight,
          colorBlendMode: BlendMode.difference,
        ),
         Padding(
          padding:const EdgeInsets.only(top: 24),
          child: Text(
            ResKey.noData.tr,
            style: const TextStyle(color: Colors.black87),
          ),
        )
      ],
    );
  }
}
